package com.nfc.base.DaoImp;

import java.util.List;

import javax.transaction.Transactional;

import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.nfc.base.Dao.UserRoleDao;
import com.nfc.base.Entity.UserRole;

@Repository("userRoleDao")
@Transactional
public class UserRoleDaoImp implements UserRoleDao {

	@Autowired
	SessionFactory sessionFactory;
	
	public void create(UserRole userRole) {
		sessionFactory.getCurrentSession().save(userRole);

	}

	public void update(UserRole userRole) {
		sessionFactory.getCurrentSession().update(userRole);

	}

	public void delete(int user_role_id) {
		// TODO Auto-generated method stub

	}

}
